import axios from 'axios';
let base = 'https://api.ok68.best';
// let base = 'http://103.214.144.19:9010'
axios.defaults.withCredentials = true;

// 后台用户管理
export const login = params => { return axios.post(`${base}/zht/login`, params).then(res => res) }; //login



export const adminList = params => { return axios.post(`${base}/zht/admin/list`, params).then(res => res) }; //账号列表
export const adminAdd = params => { return axios.post(`${base}/zht/admin/add`, params).then(res => res) }; //添加用户
export const adminDelete = params => { return axios.post(`${base}/zht/admin/delete`, params).then(res => res) }; //删除用户
export const adminUpdate = params => { return axios.post(`${base}/zht/admin/update`, params).then(res => res) }; //删除用户
export const adminStatus = params => { return axios.post(`${base}/zht/admin/status`, params).then(res => res) }; //筛选状态
export const updateStatus = params => { return axios.post(`${base}/zht/admin/updateStatus`, params).then(res => res) }; //禁用启用

// 股东账户添加
export const agentAdd = params => { return axios.post(`${base}/zht/agent/add`, params).then(res => res) }; //账号列表
export const agentList = params => { return axios.post(`${base}/zht/agent/list`, params).then(res => res) }; //账号列表
// export const agentDelete = params => { return axios.post(`${base}/zht/agent/delete`, params).then(res => res)  };//删除用户
export const agentUpdate = params => { return axios.post(`${base}/zht/agent/update`, params).then(res => res) }; //删除用户
export const agentStatus = params => { return axios.post(`${base}/zht/agent/status`, params).then(res => res) }; //筛选状态
export const agentUpdateStatus = params => { return axios.post(`${base}/zht/agent/updateStatus`, params).then(res => res) }; //禁用启用
export const agentRecharge = params => { return axios.post(`${base}/zht/agent/recharge`, params).then(res => res) }; //充值
export const agentTocash = params => { return axios.post(`${base}/zht/agent/tocash`, params).then(res => res) }; //提现
// 


export const Loginlog = params => { return axios.post(`${base}/zht/loginLog/list`, params).then(res => res) }; //登录日志
export const Module = params => { return axios.post(`${base}/common/module`, params).then(res => res) }; // //模块，彩种
export const status = params => { return axios.post(`${base}/zht/member/status`, params).then(res => res) }; //状态(会员用)
export const memberlist = params => { return axios.post(`${base}/zht/member/list`, params).then(res => res) }; //会员管理列表接口
export const detail = params => { return axios.post(`${base}/zht/member/detail`, params).then(res => res) }; //会员管理列表详情接口
export const statuslist = params => { return axios.post(`${base}/zht/accountBook/statistics`, params).then(res => res) }; //总货明细
export const current = params => { return axios.post(`${base}/common/winNumber/current`, params).then(res => res) }; //当前期信息
export const accountBook = params => { return axios.post(`${base}/zht/accountBook/agent/list`, params).then(res => res) }; //代理明细列表
export const Balance = params => { return axios.post(`${base}/zht/accountBook/agent/type`, params).then(res => res) }; //收支类型-代理明细用
export const willlist = params => { return axios.post(`${base}/zht/accountBook/member/list`, params).then(res => res) }; //收支类型-代理明细用
export const category = params => { return axios.post(`${base}/zht/accountBook/category`, params).then(res => res) }; //分类账
export const announcement = params => { return axios.post(`${base}/zht/announcement/list`, params).then(res => res) }; //公告管理列表
export const statusan = params => { return axios.post(`${base}/zht/announcement/status`, params).then(res => res) }; //公告状态
export const add = params => { return axios.post(`${base}/zht/announcement/add`, params).then(res => res) }; //添加公告
export const acquaintances = params => { return axios.post(`${base}/zht/announcement/detail`, params).then(res => res) }; //公告详情
export const dateStatus = params => { return axios.post(`${base}/zht/announcement/updateStatus `, params).then(res => res) }; //修改状态
export const categoryConfig = params => { return axios.post(`${base}/zht/categoryConfig/list `, params).then(res => res) }; //拉取数据
export const update = params => { return axios.post(`${base}/zht/categoryConfig/update `, params).then(res => res) }; //修改定盘设置
export const winNumber = params => { return axios.post(`${base}/common/winNumber/status `, params).then(res => res) }; //开奖号码状态
export const report4Month = params => { return axios.post(`${base}/zht/accountBook/report4Month `, params).then(res => res) }; //报表-月报表
export const report4Day = params => { return axios.post(`${base}/zht/accountBook/report4Day `, params).then(res => res) }; //报表-日结报表
export const report4Issue = params => { return axios.post(`${base}/zht/accountBook/report4Issue `, params).then(res => res) }; //报表-日报表(期数)
export const repair = params => { return axios.post(`${base}/zht/admin/update `, params).then(res => res) }; //修改
export const updatePassword = params => { return axios.post(`${base}/zht/admin/updatePassword `, params).then(res => res) }; //修改密码
export const report4IssueDetail = params => { return axios.post(`${base}/zht/accountBook/report4IssueDetail`, params).then(res => res) }; //报表-日报表(期数)-->详情
export const open = params => { return axios.post(`${base}/zht/order/list/open `, params).then(res => res) }; //进行中列表
export const close = params => { return axios.post(`${base}/zht/order/list/close `, params).then(res => res) }; //已封盘列表
export const order = params => { return axios.post(`${base}/zht/order/detail `, params).then(res => res) }; //详情
export const optLog = params => { return axios.post(`${base}/zht/optLog/list `, params).then(res => res) }; //操作日志列表
export const Logtype = params => { return axios.post(`${base}/zht/optLog/type `, params).then(res => res) }; //日志类型